<template>
  <div class="echarts">
    <el-row :gutter="20">
      <el-col :span="8">
        <div class="grid-content">
          <short-cuts></short-cuts>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="grid-content">
          <to-do></to-do>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="grid-content">
          <version></version>
        </div>
      </el-col>
    </el-row>
  </div>
  <!-- 统计图 -->
  <div class="statistics">
    <el-row :gutter="20">
      <el-col :span="16">
        <div class="grid-statistics">
          <statistics></statistics>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="grid-statistics">
          <monitor></monitor>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script setup lang="ts">
import ShortCuts from "./echarts/shortcuts/index.vue";
import ToDo from "./echarts/todo/index.vue";
import Version from "./echarts/version/index.vue";
import Statistics from "./echarts/statistics/index.vue";
import Monitor from "./echarts/monitor/index.vue";

import { themePinia } from "@/libs/pinia/theme";
import { computed } from "vue";

const theme = themePinia();

const echartsBoxBackgroundColor = computed(
  () => theme.EchartsBoxBackgroundColor
);
const EchartsBoxChildrenTextColor = computed(
  () => theme.EchartsBoxChildrenTextColor
);
</script>

<style scoped lang="scss">
.title {
  padding: 0.6rem 0;
  margin: 0 0.6rem;
  color: v-bind(EchartsBoxChildrenTextColor);
  font-size: 1.5rem;
  border-bottom: 2px solid #f6f6f6;
}
.grid-content {
  display: inline-block;
  width: 100%;
  height: 25rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: v-bind(echartsBoxBackgroundColor);
}
.grid-statistics {
  display: inline-block;
  width: 100%;
  height: 30rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: v-bind(echartsBoxBackgroundColor);
  margin-top: 1.5rem;
}
</style>
